<template>
  <div>
    <div   >
      <div  >
        <header  class="mint-header">
        <div   class="backBtn" @click="$router.back(-1)">
        <i  class="icon iconfont icon-back"></i>
      </div>
        <h1 class="mint-header-title">我要推荐</h1>
        <div class="mint-header-button is-right">
        </div>
        </header>
      </div>
      <div  class="wrapper">
        <ul >
          <li @click="mianduimian"><i  class="icon iconfont icon-scan"></i><span >面对面邀请</span></li>
          <li @click="vipyaoqing"><i  class="icon iconfont icon-scan"></i><span >VIP邀请</span></li>
        </ul>
      </div>
    </div>
  </div>
</template>

<script>
import { BannerListUrl, TraderListUrl } from "@/api/axiosFun";
export default {
  name: "Index",
  data() {
    return {
      msg: "Welcome to Your Vue.js App",
	  bannerList: [],
	  page:1,
	pageSize:100,
	traderType:"",
	cityId:"",
	orderNum:false,
	Latitude:"",
	Longitude:"",
    };
  },
  mounted() {
    //  this.init();
  },
  methods: {
    init() {
      BannerListUrl().then(res => {
        console.log(res);
        if (res.errCode == 0) {
          this.bannerList = res.data;
        }
      });
      TraderListUrl({
		  page:this.page,
		  pageSize:this.pageSize,
		  traderType:this.traderType,
		  cityId:this.cityId,
		  orderNum:this.orderNum,
		  Latitude:this.Latitude,
		  Longitude:this.Longitude
	  }).then(res => {
        console.log(res);
        if (res.errCode == 0) {
          this.bannerList = res.data;
        }
      });
    },
    mianduimian(){
      this.$router.replace({ name: "qrcodeTuijian"});
      //this.$router.replace({ name: "register1"});
      //this.$router.replace({ name: "shareMa", params: { id: 1 } });
    },
    vipyaoqing(){
       this.$router.replace({ name: "qrcodeVipTuijian"});
       //this.$router.replace({ name: "register99"});
       //this.$router.replace({ name: "shareMa", params: { id: 2 } });
    },
  }
};
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>
.mint-header {
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    background-color: #26a2ff;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    color: #fff;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    font-size: 14px;
    height: 40px;
    line-height: 1;
    padding: 0 10px;
    position: relative;
    text-align: center;
    white-space: nowrap;
}
.mint-header[data-v-48f5980a] {
    height: 1.32rem;
    font-size: .44rem;
    background: -webkit-gradient(linear,left top,right top,from(#0af),to(#0085ff));
    background: linear-gradient(90deg,#0af,#0085ff);
    color: #fff;
}
.mint-header-button {
    -webkit-box-flex: .5;
    -ms-flex: .5;
    flex: .5;
}
.mint-header-button.is-left {
    text-align: left;
}
.mint-header .mint-button {
    background-color: transparent;
    border: 0;
    -webkit-box-shadow: none;
    box-shadow: none;
    color: inherit;
    display: inline-block;
    padding: 0;
    font-size: inherit;
}
.header-icon[data-v-48f5980a] {
    color: #fff;
}
.mint-button-icon {
    vertical-align: middle;
    display: inline-block;
}
.mintui {
    font-family: mintui!important;
    font-size: 16px;
    font-style: normal;
    -webkit-font-smoothing: antialiased;
    -webkit-text-stroke-width: .2px;
    -moz-osx-font-smoothing: grayscale;
}
.mint-header-title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: inherit;
    font-weight: 400;
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
}
.mint-header-button {
    -webkit-box-flex: .5;
    -ms-flex: .5;
    flex: .5;
}
.mint-header-button.is-right {
    text-align: right;
}
.wrapper {
    font-size: .33rem;
    text-align: center;
}
.wrapper ul {
    padding: 1rem;
}
.wrapper li {
    width: 100%;
    background: #fff;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    font-size: .36rem;
    letter-spacing: 1px;
    padding: .8rem 0;
    color: #fff;
    margin-bottom: .8rem;
    border-radius: 10px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.wrapper li:first-of-type {
    background: linear-gradient(45deg,#f66c48,#ff5f86);
}
.iconfont {
    font-family: "iconfont" !important;
    font-size: 16px;
    font-style: normal;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
.wrapper li i {
    font-size: 1.3rem;
    font-weight: 400;
    margin-bottom: .35rem;
}
.wrapper li span {
    display: block;
    text-align: center;
}
.wrapper li:nth-of-type(2) {
    background: linear-gradient(45deg,#5acafc,#047fdf);
}
</style>
